package com.atguigu.gulimall.member.service;

import com.atguigu.common.vo.MemberRespVo;
import com.atguigu.gulimall.member.exeception.UserNameUniqueException;
import com.atguigu.gulimall.member.vo.MemberLoginVo;
import com.atguigu.gulimall.member.vo.SocialUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author kabuda
 * @email 1510418890@qq.com
 * @date 2022-10-28 11:09:54
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(MemberRespVo vo);

     void checkPhoneUnique(String phone) throws UserNameUniqueException;
     void checkUserNameUnique(String userName) throws UserNameUniqueException;

    MemberEntity login(MemberLoginVo vo);

    MemberEntity  login(SocialUser user) throws Exception;
}

